package com.atsea.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author linhaizeng
 * @Description 这是一个SpringBoot应用
 * @date 2021/11/19-10:36 下午
 */
@SpringBootApplication
public class MainApplication {



    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(MainApplication.class, args);


        String[] beanDefinitionNames = run.getBeanDefinitionNames();

        for (String s : beanDefinitionNames) {
            System.out.println(s);
        }

    }
}
